package com.keeson.android_cli.commom;

import android.Manifest;

/**
 * Created by jiaqiZHou
 * on 2020/12/4
 */
public interface Constants {

    //----------------------环境配置------------------------

    //生产环境
    String HTTP_BASEURL_RELEASE = "http://api.smartbed.ink";
    //测试环境
    String HTTP_BASEURL_TEST = "http://apitest.smartbed.ink";
    //开发环境
    String HTTP_BASEURL_DEV = "http://www.smartbed.top";//http://192.168.1.158:8089

    int app_code = 1;//App唯一标识（1-孕妇2-脊椎）


    //--------------------网络请求相关------------------------

    //连接超时时间
    int CONNECTTIMEOUT = 15;
    //写超时时间
    int WRITETIMEOUT = 20;
    //读超时时间
    int READTIMEOUT = 20;

    //网络未连接
    int HTTP_NET_ERRORCODE = 0XFF01;
    //连接异常
    int HTTP_CONN_ERRORCODE = 0XFF02;
    //连接异常
    int HTTP_CONN_TIMEOUTCODE = 0XFF03;
    //数据解析异常
    int HTTP_DATAPARSE_ERRORCODE = 0XFF04;
    //Token失效
    int HTTP_TOKEN_ERRORCODE = 0XFF05;

    //权限
    String[] PERMISSIONS = {
            Manifest.permission.CAMERA,
            Manifest.permission.WRITE_EXTERNAL_STORAGE,
            Manifest.permission.READ_EXTERNAL_STORAGE,
            Manifest.permission.ACCESS_FINE_LOCATION,
            Manifest.permission.ACCESS_COARSE_LOCATION,
            Manifest.permission.READ_PHONE_STATE,
    };

    //--------------------其他参数------------------------

    //查询间隔
    int debounceTime = 800;//单位毫秒

    //本地设备绑定信息
    String bindDevice  = "bindDevice";//
    String bleMac  = "bleMac";//
    String levelJson  = "levelJson";//



    //未绑定床:2000    已绑定床 未连接蓝牙:2001    已绑床 已连接蓝牙:2003
    int UNBINDING_BED_STATUES = 2000;
    int BINDING_BED_BLE_DISCONNECTED_STATUES = 2001;
    int BINDING_BED_BLE_CONNECTED_STATUES = 2003;
}
